package com.hjj.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hjj.entity.User;
import com.hjj.mapper.UserMapper;
import com.hjj.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
//	@Autowired
//	@Resource
//	private UserMapper userMapper;

	@Override
	public List<User> selectAllByName(String name) {
		//自定义复杂的业务逻辑
		return baseMapper.selectAllByName(name);
	}
}
